﻿using Rbac.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rbac.Domain.Interface
{
	/// <summary>
	/// 用户角色仓储
	/// </summary>
	public interface IUserRoleRepository
	{
		/// <summary>
		/// 返回所有的用户角色信息
		/// </summary>
		/// <returns></returns>
		IQueryable<UserRole> UserRoles();
		/// <summary>
		/// 根据用户查询角色
		/// </summary>
		/// <param name="userId">用户id</param>
		/// <returns></returns>
		IQueryable<Role> UserRolesByUserId(params int[] userId);
	
	}
}
